#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "checkout.h"
#include "networkthread.hpp"
#include <QTreeWidget>
#include <QString>
#include "room.hpp"
#include "database.hpp"
#include <memory>
#include <time.h>

extern rooms room;

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    netWorkThread* n;
    Ui::MainWindow *ui;
    checkOutWidget* widget;
private slots:
    void refreshWidget();
    void setInUsed();
    void checkOut();
    void report();
};

#endif // MAINWINDOW_H
